package com.naizhuai.network.Repository;
import rx.Observable;

/**
 * Created by lichenxi on 2017/5/16.
 */

public class DataManager implements DataApiStore {

      private DataApiStore mDataApiStore;

      private static DataManager INSTANCE = null;

     public  static DataManager getInstance(DataApiStore DataApiStore){
          if (INSTANCE==null){
              INSTANCE=new DataManager(DataApiStore);
          }
          return INSTANCE;
    }

    private DataManager(DataApiStore DataApiStore) {
       this.mDataApiStore=DataApiStore;
    }

    @Override
    public Observable<?> login(String region, String phone, String password) {
         return null;
//        return mDataApiStore.login(region,phone,password);
    }


}
